package com.xhj.bigfactory.test.world;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 * -
 *
 * @author 见见 pure_xhj@163.com @Date 2021-08-08 @Time 17:55
 */
@RestController
@RequestMapping("/user")
public class UserController {
  @Autowired private UserService userService;

  @RequestMapping("/add")
  public String add(@RequestBody User user) {
    int i = userService.add(user);
    System.out.println("i = " + i);
    return "success";
  }
}
